/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import javax.swing.*;
import java.io.FileOutputStream;
import java.io.PrintWriter;

/**
 * <p>Project: jse2302 - Out1
 * <p>Powered by webrx On 2023-06-12 09:39:15
 * <p>Created by IntelliJ IDEA
 *
 * @author  webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Out1 {
    public static void main(String[] args) {
        //输入不换行，必须有参数
        //System.out.print();

        //输入并换行，如果没有参数，则是输入空行
        //System.out.println();

        //程序控制台输入字符
        System.out.printf("%01d %02d %03d %04d %05d%n", 1, 2, 3, 4, 5);

        System.err.println("success");

        //输出对话框（图像0
        JOptionPane.showMessageDialog(null, "hello 欢迎");


        //输出到文件中（了解）
        try (var out = new PrintWriter(new FileOutputStream("c:/Users/Administrator/Desktop/user.txt", true))) {
            out.print("helloworld\n");
        } catch (Exception e) {
        }


    }
}
